// app.js
App({
  onLaunch() {
    // 登录
    wx.login({
      success: (res) => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      },
    });
    const res = wx.getMenuButtonBoundingClientRect();
    this.globalData.stateBar = res.top
    this.globalData.heightBar = res.height
  },
  globalData: {
    userInfo: null,
    stateBar: 0,
    heightBar: 0,
  },
});
